<?php
/**
 * 列表的查询，列出
 *
 * @author YeFng
 */

namespace c\info;

class g extends \control
{
    use \m\info_g;
	
    var $table = 'info';
    var $table_sortMap = 'info_sort_map';
    var $class = array('S'=>'\c\sort\g');
    
    function analyse($d, $tiL=0)
    {
        $d['url'] = \url::g('u=cinfo\v&id='.$d['id']);
        
        if ($d['url_title']=='')
            $d['url_title'] = $d['title'];
        if ($tiL)
            $d['url_title'] = mb_substr($d['url_title'], 0, $tiL, \YF_f::$config['charset']);
        
        return $d;
    }
}
